<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>105-关闭当前窗口.html</title>
</head>
<body>
	<button id="btn">关闭</button>
</body>
<script>
	// var oTxt = document.getElementById('txt');
	var oBtn = document.getElementById('btn');

	
	oBtn.onclick = function(){
		window.close();
	}
</script>
</html>